package com.cyy.user.textbluetoothble;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ListView;

import com.cyy.user.textbluetoothble.Adapter.DataAdapter;

import java.util.ArrayList;
import java.util.List;


public class NotifyActivity extends AppCompatActivity {
    private ListView listView ;
    private DataAdapter adapter;
    private List<String> list = new ArrayList();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notify);
        listView = (ListView) findViewById(R.id.List_notify);

        Intent intent = getIntent();
        list.addAll(intent.getStringArrayListExtra("array"));
        Log.i("NotifyActivity-----","list"+list.size());
        adapter = new DataAdapter(this,list);
        listView.setAdapter(adapter);


    }
}
